import React, { useEffect } from "react";
import NProgress from "nprogress";
import "nprogress/nprogress.css";

NProgress.configure({
	showSpinner: false,
});

function Loading() {
	NProgress.start();

	useEffect(() => {
		NProgress.done();
	}, [NProgress]);

	return <></>;
}

export default Loading;
